<%@page import="java.util.ArrayList"%>
<%@page import="schedule.Sv"%>
<%@page import="schedule.ScheduleMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>대출 스케줄표</title>
<link href="${pageContext.request.contextPath}/homepage/product/product.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/intranet/css/bootstrap.min.css" rel="stylesheet">

</head>
<script type="text/javascript">
	//팝업창 중복 처리 해결을 위해
	function closewin(){
	    // opener는 원래창의 참조
	    if ( opener != null ) { opener._childwin = null; self.close(); }
	}
</script>
<body onbeforeunload="closewin()" onunload="closewin()">
<jsp:useBean id="vo" class="schedule.Sv"/>
<jsp:setProperty property="*" name="vo"/>
<%
ScheduleMyba sm=new ScheduleMyba();
sm.setS(vo);
ArrayList<Sv> data=sm.view();
String name=(String) session.getAttribute("SA_nm");

%>
	<div id="SCM">
	<div id="SCT">
			<div id="SCT-1">
				<div id="SCT-REM">계약번호</div><div id="SCT-1-1">사원번호</div><div id="SCT-1-1">사원이름</div><div id="SCT-1-1">납입 시작일</div><div id="SCT-PBACK">납입 종료일</div><div id="SCT-">계약 시작일</div><div id="SCT-">계약 종료일</div><br/>			
				<% 	for(int i=0; i<1; i++){
					Sv sv=data.get(0);
					
					%>
					
				<div id="SCT-REM-1"><%=sv.getCT_NO() %></div><div id="SCT-1-2"><%=sv.getSA_NO() %></div><div id="SCT-1-2">박현정</div><div id="SCT-1-2"><%=sv.getCS_LOAN_START() %></div><div id="SCT-PBACK-1"><%=sv.getCS_LOAN_END() %></div><div id="SCT-0"><%=sv.getCT_START_DT() %></div><div id="SCT-0"><%=sv.getCT_END_DT() %></div>
			<%} %>
			</div>
		</div>
		<div id="SCT">
			<div id="SCT-1">
				<div id="SCT-REM">대출금액</div><div id="SCT-1-1">대출기간</div><div id="SCT-1-1">대출금리</div><div id="SCT-1-1">상환주기</div><div id="SCT-PBACK">상환방법</div><div id="SCT-">상환금</div><div id="SCT-">총이자</div><br/>
			<% 	for(int i=0; i<1; i++){
					Sv sv=data.get(0);%>
				<div id="SCT-REM-1"><%=sv.getCS_REM() %></div><div id="SCT-1-2"><%=sv.getPD_PRD() %></div><div id="SCT-1-2"><%=sv.getPD_RATE() %></div><div id="SCT-1-2">1개월</div><div id="SCT-PBACK-1"><%=sv.getPD_PBACK() %></div><div id="SCT-0"><%=sv.getCS_MN() %></div><div id="SCT-0"><%=sv.getCS_SRM() %></div>
			<%} %>
			</div>
		</div>
		<div id="SCC">
			<div id="SCC-0">회차</div><div id="SCC-1">상환금</div><div id="SCC-1">납입원금</div><div id="SCC-1">이자</div><div id="SCC-1">납입원금 합계</div><div id="SCC-1">잔금</div><div id="SCC-1">납입일</div>
		<% 
			for(int i=0; i<data.size(); i++){
				Sv s=data.get(i); %>
			<div id="SCC-0-1"><%=i+1 %></div><div id="SCC-1-1"><%=s.getCS_MN() %></div><div id="SCC-1-1"><%=s.getCS_OM() %></div><div id="SCC-1-1"><%=s.getCS_RM() %></div><div id="SCC-1-1"><%=s.getCS_SOM() %></div><div id="SCC-1-1"><%=s.getCS_SM() %></div><div id="SCC-1-1"><%=s.getCS_LOAN_START() %></div>
			
			
			<%}	%>
		
		</div>
	</div>
</body>
</html>